﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Snowflake.Entity
{
    /// <summary>
    /// The exception that is thrown on missing reference to EntityList
    /// </summary>
    [Serializable]
    public class MissingEntityListReferenceException: Exception
    {
        /// <summary>
        /// Initialize the new instance of the class
        /// </summary>
        public MissingEntityListReferenceException() { }
        /// <summary>
        /// Initialize the new instance of SaveConflictExcpetion class with the specific message
        /// </summary>
        /// <param name="message">The message of the exception</param>
        public MissingEntityListReferenceException(string message) : base(message) { }
        /// <summary>
        /// Initialize the new instance of SaveConflictExcpetion class with the specific message and reference to the innerException that cause the exception
        /// </summary>
        /// <param name="message">The message of the exception</param>
        /// <param name="innerException">The exception that cause this exception</param>
        public MissingEntityListReferenceException(string message, Exception innerException) : base(message, innerException) { }
        /// <summary>
        /// Initialize the new instance of SaveConflictExcpetion class with serialized data
        /// </summary>
        /// <param name="info">SerializationInfo that holds the serialization data about the exception beeing thrown</param>
        /// <param name="context">StreamingContext that holds contextual information about the source and destination.</param>
        public MissingEntityListReferenceException(SerializationInfo info, StreamingContext context) : base(info, context) { }
    }
}
